package sz.szsmk.citizencard.ui.newversion.activity.adapter

import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import sz.szsmk.citizencard.R
import sz.szsmk.citizencard.databinding.LayoutWheretoBinding
import sz.szsmk.citizencard.ui.newversion.config.Constants
import sz.szsmk.citizencard.ui.newversion.utils.AMapUtil
import sz.szsmk.citizencard.util.JumpUtils
import sz.szsmk.citizencard.util.zxyh.ResourceStyleUtils

/**
 *  author : hyt
 *  date : 2020/9/3
 *  description :
 */
class WhereToAdapter(var context: Context? = null) : RecyclerView.Adapter<WhereToAdapter.WhereToHolder>() {


    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) =
            WhereToHolder(DataBindingUtil.inflate(LayoutInflater.from(parent.context),
                     R.layout.layout_whereto , parent, false))

    override fun getItemCount() = 0

    override fun onBindViewHolder(holder: WhereToHolder, position: Int) {

    }
    lateinit var startLocation:String
    lateinit var endLocation: String


    fun getTextView(text:String): View {
       var view: View = LayoutInflater.from(context).inflate(
               R.layout.view_whereto_textview , null, false)
        var textView = view.findViewById(R.id.tv_text) as TextView
        textView.text = text
        ResourceStyleUtils.setMetrolLineBack(context,textView)
        return view
    }

    class WhereToHolder(var bind: LayoutWheretoBinding)
        : RecyclerView.ViewHolder(bind.root){
        init {

        }
    }

}